package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "h_doctor_notice")
public class HDoctorNotice implements Serializable {

    private static final long serialVersionUID = 8667027814440115456L;
    @Id
    @Column(name = "id_bigint", columnDefinition = "bigint(20)")
    private Long id;
    @Column(name = "contents_nvarchar", columnDefinition = "varchar(255)")
    private String contents;
    @Column(name = "is_top_bit", columnDefinition = "tinyint(1)")
    private Integer isTop;
    @Column(name = "n_type_tinyint", columnDefinition = "tinyint(1) comment '所有人=0,医生=1,用户=2'")
    private Byte nType;
    @Column(name = "create_name_nvarchar", columnDefinition = "varchar(255)")
    private String createName;
    @Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
    private Date createTime;
}
